#include <vector>
#include <iostream>
#include <algorithm>

using namespace std;

bool checkPhoto(vector<int> red, vector<int> blue){    
    sort(red.begin(), red.end());
    sort(blue.begin(), blue.end());

    if(red.size() != blue.size())
        return false;

    int x=0;
    int y=0;
    if (red[x] > blue[y]){
        x=x+1;
        y=y+1;
        for (; x < red.size(); x++, y++){
            if (red[x] <= blue[y]){
                return false;
            }
        }
        return true;        
    }
    else if (red[x] < blue[y]){
        x=x+1;
        y=y+1;
        for (; x < red.size(); x++, y++){
            if (red[x] >= blue[y]){
                return false;
            }
        }
        return true;
    }
    else if (red[x] = blue[y]){
        return false;
    }
}

int main(int argc, char const *argv[])
{
    
    return 0;
}
